import pytest
from baseTools.myLogger import logger
import os
import time
from baseTools.readYaml import read_yaml

if __name__ == '__main__':
    logger.info("开始运行自动化测试用例".center(50, "*"))
    pytest.main()
    logger.info("自动化测试用例运行完成".center(50, "*"))
    logger.info("生成html测试报告".center(50, "*"))
    os.system(r'allure generate .\report\json_data\ -o .\report\{}html --clear'.format(time.time()))